Narrowing Directed by a Graph of Terms
نویسندگان
چکیده
Narrowing provides a complete procedure to solve equations modulo confluent and terminating rewriting systems. But it seldom terminates. This paper presents a method to improve the termination. The idea consists in using a finite graph of terms built from the rewriting system and the equation to be solved, which helps one to know the narrowing derivations possibly leading to solutions. Thus, the other derivations are not computed. This method is proved complete. An example is given and some improvements are proposed. 1 I n t r o d u c t i o n Solving equations (unification) modulo term rewriting systems is an important problem, which is necessary to combine functional and logic programming, for example as in EQLOG langage [Goguen-Meseguer-86]. In this framework, completeness and termination of unification methods are desirable. Indeed, during a clause superposition attempt, it is interesting to detect the unsatisflability of the equation to be solved, which implies that the superpositlon is not possible. Conditional completion procedures also need methods that solve the equations appearing in the conditions. If such an equation is unsatisfiable, the conditional rewrite rule containing it can be deleted, because this rule can't be applied. And to detect that, a complete and terminating procedure is necessary. This paper presents a method that improves the termination of basic narrowing. Basic narrowing gives a complete set of solutions modulo confluent and terminating rewriting systems, by computing all the narrowing derivations issued from the equation to be solved [Hullot-80]. Actually, only the derivations that lead to a syntactically unifiable equation give solutions. Thus, the others are useless. Our idea consists in using this fact to prune useless paths from the search tree. Let's look at a simple example. Consider the following confluent and terminating rewriting system : r l : h(f(g(Y))) -+ h(/(y)) r2 : h ( 0 ) ~ 0
منابع مشابه
Directed prime graph of non-commutative ring
Prime graph of a ring R is a graph whose vertex set is the whole set R any any two elements $x$ and $y$ of $R$ are adjacent in the graph if and only if $xRy = 0$ or $yRx = 0$. Prime graph of a ring is denoted by $PG(R)$. Directed prime graphs for non-commutative rings and connectivity in the graph are studied in the present paper. The diameter and girth of this graph are also studied in the pa...
متن کاملGraph Matrix Completion in Presence of Outliers
Matrix completion problem has gathered a lot of attention in recent years. In the matrix completion problem, the goal is to recover a low-rank matrix from a subset of its entries. The graph matrix completion was introduced based on the fact that the relation between rows (or columns) of a matrix can be modeled as a graph structure. The graph matrix completion problem is formulated by adding the...
متن کاملComplete Strategies for Admissible-Graph Collapsing Narrowing
Narrowing constitutes the basis of the operational semantics of modern declarative languages which integrate functional and logic programming paradigms. Efficient implementations of these languages consider first-order terms as graphs. In this paper, we investigate narrowing in the setting of graph rewriting systems. We take the full advantage of graph structures by allowing maximal sharing of ...
متن کاملThe topological ordering of covering nodes
The topological ordering algorithm sorts nodes of a directed graph such that the order of the tail of each arc is lower than the order of its head. In this paper, we introduce the notion of covering between nodes of a directed graph. Then, we apply the topological orderingalgorithm on graphs containing the covering nodes. We show that there exists a cut set withforward arcs in these...
متن کاملThe power digraphs of safe primes
A power digraph, denoted by $G(n,k)$, is a directed graph with $Z_{n}={0,1,..., n-1}$ as the set of vertices and $L={(x,y):x^{k}equiv y~(bmod , n)}$ as the edge set, where $n$ and $k$ are any positive integers. In this paper, the structure of $G(2q+1,k)$, where $q$ is a Sophie Germain prime is investigated. The primality tests for the integers of the form $n=2q+1$ are established in terms of th...
متن کاملتغییرات رادیوگرافیک ستون فقرات کمری و لگن در بیماران با ضایعه نخاعی مزمن
Background: Chronic spinal cord injury has an important role in sensorimotor disor-ders which is associated with many complications and the rate of these complications should be certainly considered. The most important complications are the changes in bones and joints which come with pain and lead to increase in their motor disability. In this paper, the radiographic images were studied and the...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1991